//package com.example.java.kafka.es9client;
//
//import co.elastic.clients.elasticsearch.indices.GetIndexResponse;
//
//public class SearchIndex {
//    public static void main(String[] args) {
//        ConnectElasticsearch.connect(client -> {
//            GetIndexResponse getIndexResponse = client.indices().get(g -> g.index("user"));
//            getIndexResponse.indices().forEach((name, indexInfo) -> {
//                System.out.println("index: " + name);
//                System.out.println("alias: " + indexInfo.aliases());
//                System.out.println("setting: " + indexInfo.settings());
//                System.out.println("mapping: " + indexInfo.mappings());
//            });
//        });
//    }
//}